/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BusinessLogic;

/**
 *
 * @author James
 */
public class Constants {
    //Update cart action
    public static final int CART_UPDATE_ITEM_QUANTITY = 0;
    public static final int CART_UPDATE_RESERVATION   = 1;
    public static final int CART_DELETE_CART_ITEM     = 2;
    
    //Reservation
    public static final int RESERVATION_NUM_OF_MINUTES_PER_SLOT = 30;
    
    //Reservation status
    public static final int RESERVATION_STATUS_UNPAID    = 0;
    public static final int RESERVATION_STATUS_PENDING   = 1;
    public static final int RESERVATION_STATUS_FAILED    = 2;
    public static final int RESERVATION_STATUS_CONFIRMED = 3;
    public static final int RESERVATION_STATUS_CANCELLED = 4;
    public static final int RESERVATION_STATUS_REFUNDED  = 5;
    
    //1st parameter for getInfo 
    public static final int GET_PARTNER_PROFILE            = 0;
    public static final int GET_LIST_OF_BRANCHES           = 1;
    public static final int GET_LIST_OF_OUTLETS            = 2;
    public static final int GET_OUTLET_PROFILE             = 3;
    public static final int GET_LIST_OF_PARTNER_CATEGORIES = 4;
    public static final int GET_LIST_OF_OUTLET_CATEGORIES  = 5;
    public static final int GET_ITEM_CATEGORY_INFO         = 6;
    public static final int GET_DETAILED_ITEM_INFO         = 7;
    public static final int GET_SIMPLE_ITEM_INFO           = 8;
    public static final int GET_LIST_OF_RESERVABLE_UNITS   = 9;
    public static final int GET_RESERVABLE_UNIT_INFO       = 10;
    public static final int GET_LIST_OF_RESERVATIONS       = 11;
    public static final int GET_RESERVATION_INFO           = 12;
    public static final int GET_LIST_OF_EMPLOYEES          = 13;
    public static final int GET_EMPLOYEE_INFO              = 14;
    
    
    //Folder and File
    public static final String FOLDER_PARTNER_IMAGE  = "C:\\Users\\James\\Desktop\\Study\\IS3102\\TCubeProject\\portal\\web\\partner\\images\\";
    public static final String FOLDER_TEMP           = "C:\\Users\\James\\Desktop\\Study\\IS3102\\Temp";
    public static final int    FILE_UPLOAD_MAX_SIZE  = 50000; 
    public static final int    FILE_MAX_NUM_OF_ITEM_PICTURE            = 2;
    public static final int    FILE_MAX_NUM_OF_OUTLET_PICTURE          = 5;
    public static final int    FILE_MAX_NUM_OF_RESERVABLE_UNIT_PICTURE = 3;
    
    //Account level
    public static final int ACCOUNT_LEVEL_ROOT = 999;
    
    //Partner category
    public static final int SECTOR_OTHER             = 0;
    public static final int SECTOR_FOOD_AND_BEVERAGE = 1;
    public static final int SECTOR_HOTELS            = 2;
    public static final int SECTOR_FASHION           = 3;
    
    //Partner privilege
    public static final int PARTNER_CHANGE_PARTNER_PROFILE  = 0;
    public static final int PARTNER_CHANGE_OUTLET_PROFILE   = 1;
    public static final int PARTNER_ACCESS_TRANSACTION_INFO = 2;
    public static final int PARTNER_ACCESS_RESERVATION_INFO = 3;
    public static final int PARTNER_MODIFY_ITEM_INFO        = 4;
    public static final int PARTNER_NUMBER_OF_PRIVILEGES    = 5;
    
    //TCube roles
    public static final int TCUBE_ROLE_ADMIN      = 0;
    public static final int TCUBE_ROLE_MANAGER    = 1;
    public static final int TCUBE_NUMBER_OF_ROLES = 2;
    
    //TCube privilege
    public static final int TCUBE_CREATE_ACCOUNT          = 0;
    public static final int TCUBE_CREATE_TCUBE_PRVILEGE   = 1;
    public static final int TCUBE_CREATE_PARTNER_PRVILEGE = 2;
    public static final int TCUBE_REGISTER_PARTNER        = 3;
    public static final int TCUBE_GRANT_PRIVILEGE         = 4;
    public static int TCUBE_NUMBER_OF_PRIVILEGES    = 5;
    
    //Status
    public static final int STATUS_SUCCESSFUL       = 0;
    public static final int STATUS_FAILED           = 1;
    public static final int STATUS_SESSION_EXPIRED  = 2;
    public static final int STATUS_WRONG_PASSWORD   = 3;
    public static final int STATUS_NOT_UNIQUE       = 4;
    public static final int STATUS_NOT_FOUND        = 5;
    public static final int STATUS_WRONG_EMAIL      = 6;
    public static final int STATUS_UNMATCHED_EMAILS = 7;
    public static final int STATUS_NEW_SESSION      = 8;
    public static final int STATUS_USER_INACTIVATED = 9;
    public static final int STATUS_NOT_ALLOWED      = 10;
    public static final int STATUS_ACCOUNT_BANNED   = 11;
    public static final int STATUS_INVALID_INPUT    = 12;
    public static final int STATUS_UNEXPECTED_ERROR = 13;
    
    //Email type
    public static final int MAIL_ACTIVATION = 0;
    
    //Voucher type
    public static final int VOUCHER_EVERYWHERE = 0;
    public static final int VOUCHER_SECTOR     = 1;
    public static final int VOUCHER_PARTNER    = 2;
    public static final int VOUCHER_OUTLET     = 3;
}
